package com.hxzy.shop.dto.basedto;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.io.Serializable;

@Data
public class PageReq implements Serializable {

    @NotNull(message = "当前页值不能为空")
    @ApiModelProperty(value = "当前页",example = "1")
    private Integer pageNum;

    @NotNull(message = "每页个数的值不能为空")
    @ApiModelProperty(value = "每页个数",example = "10")
    private Integer pageSize;
}
